/* 用户模块
 */
import request from '@/utils/request.js'
export const loadUserInfo = () => {
  return request({
    method: 'get',
    url: 'user/profile'
  })
}
export const updataSubmit = (data) => {
  return request({
    method: 'patch',
    url: 'user/profile',
    data: data
  })
}

// 头像更新
export const updateUserPhoto = (fd) => {
  return request({
    method: 'patch',
    url: 'user/photo',
    data: fd
  })
}
